package com.ict.web.controller.yzq;


import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.ict.common.core.controller.BaseController;
import com.ict.common.core.page.TableDataInfo;
import com.ict.web.dto.GetProjectInfoListRespDto;
import com.ict.web.service.ProjectInfoService;
import com.ict.web.vo.req.GetProjectInfoListReq;
import com.ict.web.vo.resp.GetProjectInfoListResp;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 开放接口
 * @author xc
 */
@RestController
@RequestMapping("/projectApproval")
public class ProjectApprovalController extends BaseController {
    @Autowired
    private ProjectInfoService projectInfoService;

    @PostMapping("/get")
    @ApiOperation("获取项目信息列表")
    public List<GetProjectInfoListRespDto> getProjectApprovalInfoList() {
        List<GetProjectInfoListRespDto> resps = projectInfoService.getProjectApprovalInfoList(null);
        return resps;
    }
}
